home *** CD-ROM | disk | FTP | other *** search
- Path: news.netam.net!alpha!bgc
- From: bgc@alpha.netam.net (The Bowling Green Connection)
- Newsgroups: comp.lang.c
- Subject: Getting modem status
- Date: 23 Feb 1996 17:05:59 GMT
- Organization: NetAmerica, Bowling Green, KY.
- Message-ID: <4gks5n$k4a@news.netam.net>
- NNTP-Posting-Host: alpha.netam.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- I'm trying to use _bios_serialcom (Borland C++ 3.1) to check the status
- of my modem. I want to know if the modem is hung up, or being used..
- The problem comes when I want to test that the modem is being used, when
- it really is being used...My test program, the instant the _bios_serialcom
- function is executed, hangs up my modem.. What's the deal? I don't want
- the modem to hang up, I just want the test program to tell me the modem
- is in use..
-
- The modem I'm using is on com1, and the command syntax I used is:
- printf("%d\n", _bios_serialcom( _COM_STATUS, COM1, 0 ));
- which could be substituted by, ( 3 , 0, 0 ),
- and still hangs me up.
-
- Thanks,
- Eddie,
- bgc@bgcky.com
-